//
//  ZcVideoPreviewViewController.h
//  智能控制系统
//
//  Created by Rankin on 16/2/27.
//
//

#import <UIKit/UIKit.h>
#import <UMEyeCloudIOS/HKSUMEyeCloud.h>
#import <UMEyeCloudIOS/HKSClientTitle.h>
#import <UMEyeCloudIOS/HKSDeviceClient+JXKL.h>
#import <UMEyeCloudIOS/HKSDeviceCodecItem.h>
#import <UMEyeCloudIOS/HKSDeviceCleanItem.h>

@interface ZcVideoPreviewViewController : UIViewController

@property(nonatomic, strong) NSString* P2PServe ;
@property(nonatomic) int serverPort;
@property(nonatomic, strong) NSString*deviceUMID;
@property(nonatomic, strong) NSString*deviceUserID;
@property(nonatomic, strong) NSString*devicePassword;
@property(nonatomic, strong) HKSRecFile*recfile;
@property(nonatomic) int channelNo;
@property (weak, nonatomic) IBOutlet UIView *videoDisplayView;
@property(weak, nonatomic) IBOutlet UISlider *processCtr;
@property(weak, nonatomic) IBOutlet UIButton *playBut;
@property(weak, nonatomic) IBOutlet UIButton *backBut;
@property(weak, nonatomic) IBOutlet UILabel *minTimeLabel;
@property(weak, nonatomic) IBOutlet UILabel *maxTimeLabel;
@property(nonatomic) int minTime;
@property(nonatomic) int maxTime;
@property(nonatomic) int currentTime;
@property(nonatomic, strong) HKSDeviceClient *playerClient;
@property(nonatomic, strong) NSTimer* playStatusCheckTimer;

- (id)initWithUmid:(NSString*)umid deviceUserId:(NSString*)deviceUserId devicePassword:(NSString*)pwd
           recfile:(HKSRecFile*)recfile channelNo:(int)channelNo;
@end
